package dev.zeno.booru;

import android.content.Intent;
import android.os.Bundle;

import com.actionbarsherlock.app.SherlockActivity;

import dev.zeno.booru.db.BooruDBAdapter;

public class BaseActivity extends SherlockActivity {

	protected BooruDBAdapter booruDatabase;
	protected static final int NEW_BOORU_REQUEST = 321541;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		booruDatabase = new BooruDBAdapter(this);
	}
	
	@Override
	public void finish()
	{
		super.finish();
		overridePendingTransition(R.anim.enter, R.anim.exit);
	}
	
	@Override
	public void startActivity(Intent intent)
	{
		super.startActivity(intent);
		overridePendingTransition(R.anim.enter, R.anim.exit);
	}
	
	@Override
	public void startActivityForResult(Intent intent, int requestCode)
	{
		super.startActivityForResult(intent, requestCode);
		overridePendingTransition(R.anim.enter, R.anim.exit);
	}
}
